import { defineStore } from 'pinia'
import { ref } from 'vue'
import { layoutGetCategoryService } from '@/apis/layout.js'
export const useCategoryStore = defineStore('category', () => {
  const categoryList = ref([])
  const getCategoryList = async () => {
    const res = await layoutGetCategoryService()
    categoryList.value = res.result
  }
  return {
    categoryList,
    getCategoryList
  }
})
